MDBT42Q Click Example.
Description
This example demonstrates the use of MDBT42Q Click board by processing data from a connected BT device.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger.
Application Task
Application task is split in few stages:
- MDBT42Q_POWER_UP: Powers up the device, performs a factory reset and reads system information.
- MDBT42Q_CONFIG_EXAMPLE: Sets the BT device name.
- MDBT42Q_EXAMPLE: Performs a BT terminal example by processing all data from a connected BT device and sending back an adequate response messages.
Additional Function
- static void mdbt42q_clear_app_buf ( void )
- static void mdbt42q_log_app_buf ( void )
- static err_t mdbt42q_process ( mdbt42q_t *ctx )
- static err_t mdbt42q_read_response ( mdbt42q_t *ctx )
- static err_t mdbt42q_power_up ( mdbt42q_t *ctx )
- static err_t mdbt42q_config_example ( mdbt42q_t *ctx )
- static err_t mdbt42q_example ( mdbt42q_t *ctx )
- Note
- We have used the Serial Bluetooth Terminal smartphone application for the test.
- Author
- Stefan Filipovic